home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / mdipad.zip / MAKEFILE.OLD < prev    next >
Text File  |  1993-02-24  |  2KB  |  57 lines

  1. #  ************************************************************************
  2. #
  3. #                       Microsoft Developer Support
  4. #                Copyright (c) 1992 Microsoft Corporation
  5. #
  6. #  ************************************************************************
  7. #  MAKEFILE  : MdiPad32
  8. #  PURPOSE   : A Small Win32/Win16 Sample MDI Application Template Makefile
  9. #  COMMENTS  :
  10. #
  11. #  ************************************************************************
  12.  
  13. # Nmake macros for building Win32 applications
  14. !include <ntwin32.mak>
  15.  
  16. # macro defines
  17. PROJ=MdiPad
  18. DLL=ToolBar
  19.  
  20. # target list
  21. all: $(PROJ).exe $(DLL).dll
  22.  
  23. # Update the resource if necessary
  24. $(PROJ).res: $(PROJ).rc $(PROJ).dlg $(PROJ).h
  25.     rc -DWIN32 -r -fo $(PROJ).res $(PROJ).rc
  26.     cvtres -$(CPU) $(PROJ).res -o $(PROJ).rbj
  27.  
  28. # Update the object file if necessary
  29. $(PROJ).obj: $(PROJ).c $(PROJ).h
  30.     $(cc) $(cdebug) $(cflags) $(cvars) $(PROJ).c
  31.  
  32. $(DLL).obj: $(DLL).c $(DLL).h
  33.     $(cc) $(cdebug) $(cflags) $(cvars) $(DLL).c
  34.  
  35. # Update the import library
  36. $(DLL).lib: $(DLL).obj $(DLL).def
  37.     lib -machine:$(CPU) \
  38.     -def:$(DLL).def           \
  39.     -out:$(DLL).lib
  40.  
  41. # Update the dynamic link library
  42. $(DLL).dll: $(DLL).obj $(DLL).def
  43.     $(link) $(linkdebug) \
  44.     -base:0x1C000000                \
  45.     -dll                            \
  46.     -entry:DllEntryPoint$(DLLENTRY) \
  47.     -out:$(DLL).dll                 \
  48.     $(DLL).exp $(DLL).obj           \
  49.     $(guilibs)
  50.  
  51. # Update the executable file if necessary, and if so, add the resource back in.
  52. $(PROJ).exe: $(PROJ).obj $(PROJ).res $(PROJ).def $(DLL).lib
  53.     $(link) $(linkdebug) $(guiflags)   \
  54.     -out:$(PROJ).exe                   \
  55.     $(PROJ).obj $(DLL).lib $(PROJ).rbj \
  56.     $(guilibs)
  57.